-
Notifications
You must be signed in to change notification settings - Fork 14.6k
uORB doc update: SensorBaro, DifferentialPressure #25712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
uint32 device_id # [-] Unique device ID for the sensor that does not change between power cycles | ||
float32 differential_pressure_pa # [Pa] Differential pressure reading in Pascals (may be negative) | ||
float32 temperature # [degC] [@invalid NaN if unknown] Temperature | ||
uint32 error_count # [-] Number of errors detected by driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, I made these grouped (no inter-line whitespace. It makes it more readable like this, and they share they quality that they carry the raw data.
Note, new unit here is "Pa" for pascals.
uint32 error_count # Number of errors detected by driver | ||
uint32 device_id # [-] Unique device ID for the sensor that does not change between power cycles | ||
float32 differential_pressure_pa # [Pa] Differential pressure reading in Pascals (may be negative) | ||
float32 temperature # [degC] [@invalid NaN if unknown] Temperature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is marked as NaN
if unknown.
- is it possible for it to be unknown?
- Do the values default to zero on construction? I ask because this is used in SCALED_PRESSURE but might not be populated. That means we need them to be zero on construction to match what MAVLink expects.
uint64 timestamp_sample | ||
# Differential-pressure sensor | ||
# | ||
# ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we want to say about this?
# | ||
# ? This is used in the `SCALED_PRESSURE_n` MAVLink messages (values must be zero-filled). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we want to say about this? Normally we talk about setters and getters. So something like
# | |
# ? This is used in the `SCALED_PRESSURE_n` MAVLink messages (values must be zero-filled). | |
# | |
# This is populated by barometer drivers and used by the EKF2 estimator. | |
# Up to 3 instances are published externally via the `SCALED_PRESSURE_n` MAVLink messages (along with information from a corresponding DifferentialPressure instance). |
msg/SensorBaro.msg
Outdated
uint64 timestamp # [us] Time since system start | ||
uint64 timestamp_sample # [us] Timestamp of the raw data | ||
|
||
float32 pressure # static pressure measurement in Pascals | ||
|
||
float32 temperature # temperature in degrees Celsius | ||
|
||
uint32 error_count | ||
uint32 device_id # [-] Unique device ID for the sensor that does not change between power cycles | ||
float32 pressure # [Pa] Static pressure measurement | ||
float32 temperature # [degC] Temperature. | ||
uint32 error_count # [-] Number of errors detected by driver. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the same questions from other message.
Mavlink uses fields from this and DifferentialPressure in the Scaled_Pressure
message. However if there is a baro but no airspeed sensor, or visa versa the values picked out of the non-existing object need to be zero,.
This updates the uORB SensorBaro and DifferentialPressure topics to latest docs standard.
There are open issues that need developers input.